const express = require('express')

const app = express();
app.use(express.static(__dirname+'/static'))

app.get('/people',(req,res) => {
    res.send({
        name: 'wjz',
        age: 23
    })
})

app.listen(8848,(err) => {
    if (!err) console.log('服务器启动成功')
})